<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type='text/css'>
	.profile-user-info {margin:0;}
	table td{
		text-align: center;
	}
	.pages a,.pages span {
	    display:inline-block;
	    padding:5px 9px;
	    margin:0 1px;
	    border:1px solid #f0f0f0;
	}
	.pages a,.pages li {
	    display:inline-block;
	    list-style: none;
	    text-decoration:none; color:#58A0D3;
	}
	.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
	    margin:0;
	}
	.pages a:hover{
	    border-color:#50A8E6;
	}
	.pages span.current{
	    background:#50A8E6;
	    color:#FFF;
	    font-weight:700;
	    border-color:#50A8E6;
	}
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Statistics/index')}">考官统计列表</a>
	</li>
	<li class="active">考官统计详细信息</li>
</ul><!-- /.breadcrumb -->
<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"><button class="btn btn-xs btn-pink" onClick='location.href="__CONTROLLER__/statistics_export/examiner_id/{$user_info.user_id}"'>导出统计表格</button></div>
<!-- /.nav-search -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<div class="space-6"></div>

<table id="sample-table-1" class="table table-bordered table-hover">
	<tr>
		<th class="center label-yellow"><span class="label label-yellow label-lg"> &nbsp;考官基本信息&nbsp; </span></th>
	    <th class="center">midiID</th>
	    <td>{$user_info.user_id|formatNO=6}</td>
		<th class="center">姓名</th>
		<td>{$user_info.user_name}</td>
		<th class="center">联系方式</th>
		<td>{$user_info.user_phone}</td>
	</tr>
	<tr>
		<th class="center label-success"><span class="label label-success label-lg"> &nbsp;本月&nbsp; </span></th>
	    <th class="center">派单次数</th>
	    <td style="color:green">{$this_month.exam_count}</td>
		<th class="center">完成次数</th>
		<td style="color:green">{$this_month.exam_finish_count}</td>
		<th class="center">收入</th>
		<td style="color:green">
			<?php if (empty($this_month['exam_income'])): ?>
			0.00
			<?php else: ?>
			{$this_month.exam_income}
			<?php endif ?>
		</td>
	</tr>
	<tr>
		<th class="center label-purple"><span class="label label-purple label-lg"> &nbsp;上个月&nbsp; </span></th>
	    <th class="center">派单次数</th>
	    <td style="color:blue">{$one_month.exam_count}</td>
		<th class="center">完成次数</th>
		<td style="color:blue">{$one_month.exam_finish_count}</td>
		<th class="center">收入</th>
		<td style="color:blue">
			<?php if (empty($one_month['exam_income'])): ?>
			0.00
			<?php else: ?>
			{$one_month.exam_income}
			<?php endif ?>
		</td>
	</tr>
	<tr>
		<th class="center label-warning "><span class="label label-warning label-lg "> 最近三个月 </span></th>
	    <th class="center">派单次数</th>
	    <td style="color:orange">{$three_month.exam_count}</td>
		<th class="center">完成次数</th>
		<td style="color:orange">{$three_month.exam_finish_count}</td>
		<th class="center">收入</th>
		<td style="color:orange">
		<?php if (empty($three_month['exam_income'])): ?>
		0.00
		<?php else: ?>
		{$three_month.exam_income}
		<?php endif ?>
		</td>
	</tr>
	<tr>
		<th class="center label-pink "><span class="label label-pink label-lg "> 最近半年 </span></th>
	    <th class="center">派单次数</th>
	    <td style="color:purple">{$six_month.exam_count}</td>
		<th class="center">完成次数</th>
		<td style="color:purple">{$six_month.exam_finish_count}</td>
		<th class="center">收入</th>
		<td style="color:purple">
		<?php if (empty($six_month['exam_income'])): ?>
		0.00
		<?php else: ?>
		{$six_month.exam_income}
		<?php endif ?>
		</td>
	</tr>
</table>

<div class="space-6"></div>
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-info label-lg "> 历史监考列表 </span></div>
</div>
<div class="space-6"></div>

<table id="sample-table-1" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
		    <th class="center">编号</th>
			<th class="center">考试编号</th>
			<th class="center">专业</th>
			<th class="center">等级</th>
			<th class="center">考试结果</th>
			<th class="center">收入</th>
			<th class="center">完成时间</th>
			<th class="center">操作</th>
		</tr>
	</thead>

	<tbody>
		<foreach name="exam_arr" item="v">
		<tr style="text-align:center">
			<td class="center">{$key+1}</td>
			<td class="center">{$v.exam_id}</td>
			<td>
			<?php if ($v['exam_major_id'] == 1): ?>
			电吉他
			<?php elseif ($v['exam_major_id'] == 2): ?>
			爵士鼓
			<?php elseif ($v['exam_major_id'] == 3): ?>
			电贝司	
			<?php endif ?>
			</td>
			<td>{$v.exam_level}级</td>
			<td>
			<?php if ($v['exam_result'] == 1): ?>
			<span style="color:yellow">等待考试结果</span>
			<?php elseif ($v['exam_result'] == 2): ?>
			<span style="color:green">考试通过</span>
			<?php elseif ($v['exam_result'] == 3): ?>
			<span style="color:red">考试未通过</span>
			<?php endif ?>
			</td>
			<td>
				<?php if (empty($v['exam_income'])): ?>
				0.00
				<?php else: ?>
				{$v.exam_income}
				<?php endif ?>
			</td>
			<td>{$v.exam_endtime}</td>
			<td>
				<div class="hidden-sm hidden-xs btn-group">
					<div class="hidden-sm hidden-xs action-buttons">
						<a class="blue" style='cursor:pointer' title='查看考试'onClick='location.href="__CONTROLLER__/exam_details/exam_id/{$v.exam_id}"'>
							<i class="ace-icon fa fa-search-plus bigger-130"></i>
						</a>
					</div>
				</div>
			</td>
		</tr>
	    </foreach>
	</tbody>
</table>
<div class="pages" style="float:right">{$page}</div>
<button type="button" class="btn btn-sm btn-light" onClick="location.href='{:U('Statistics/index')}'"><i class="ace-icon fa fa-arrow-left"></i> 返回</button>
</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_statistics').addClass('active open');
        $('#menu_statistics_list').addClass('active');
    });
</script>
</block>